package content;

import java.io.File;

import javax.swing.filechooser.FileFilter;
public class TxtFilter extends FileFilter {
	public boolean accept(File f) {
		if (f.isDirectory()) {
			return true;
			}
		
		final String txt = "txt";
		if (f.getName().endsWith(txt)){
			return true;
			} else {
				return false;
			}
		}
	public String getDescription() {
		return "*.txt";
	}
}
